package com.andyage.admin.dao;
import java.util.List;

import com.andyage.admin.bean.AdstaffBean;
public interface AdStaffMapper {
	/**
	 * 管理员登录
	 * @param adstaff
	 * @return
	 * @throws Exception
	 */
	AdstaffBean AdStaffLogin(AdstaffBean adstaff)throws Exception;
	/**
	 * 查询管理员表
	 * @param adstaff
	 * @return
	 * @throws Exception
	 */
	List<AdstaffBean> queryAdStaffInfo(AdstaffBean adstaff)throws Exception;
	/**
	 * 查询所有人数
	 * @param adstaff
	 * @return
	 * @throws Exception
	 */
	int queryAdStaffInfoCount(AdstaffBean adstaff)throws Exception;
	/**
	 * 添加管理员
	 * @param adstaff
	 * @throws Exception
	 */
	int addAdStaffInfo(AdstaffBean adstaff)throws Exception;
	/**
	 * 删除管理员用户
	 * @param id
	 * @throws Exception
	 */
	int deleteAdStaffInfo(String staffId)throws Exception;
	/**
	 * 修改管理员用户
	 * @param adstaff
	 * @throws Exception
	 */
	int updateAdStaffInfo(AdstaffBean adstaff)throws Exception;
	/**
	 * 查询是否存在相同用户
	 * @param staffAccount
	 * @return
	 * @throws Exception
	 */
	AdstaffBean queryCommonStaff(String staffAccount)throws Exception;
	/**
	 * 内部用户自行修改密码
	 * @param adstaff
	 * @return
	 * @throws Exception
	 */
	int updateStaffPwd(AdstaffBean adstaff)throws Exception;
}
